// 员工管理
import layout from '@/layout'
export default {
  // 路由信息
  path: '/employee',
  component: layout,
  name: 'employee',
  redirect: '/employee/courier',
  meta: { title: '员工管理', icon: 'el-icon-s-management' },
  children: [
    {
      path: '/employee/courier',
      component: () => import('@/views/employee/courier/index.vue'),
      name: 'courierManage',
      children: [
        {
          path: '/employee/courier',
          name: 'courier',
          meta: { title: '快递员管理' },
          component: () => import('@/views/employee/courier/main/index.vue')
        },
        {
          path: '/employee/courier/mapContent/:id?',
          name: 'mapContent',
          hidden: true,
          component: () => import('@/views/employee/courier/mapContent/index.vue')
        }
      ]
    },

    {
      path: '/employee/driver',
      component: () => import('@/views/employee/driver/index.vue'),
      name: 'driverManage',
      children: [
        {
          path: '/employee/driver',
          name: 'driver',
          meta: { title: '司机管理' },
          component: () => import('@/views/employee/driver/main/index.vue')
        },
        {
          path: '/employee/detail/:id',
          name: 'detail',
          hidden: true,
          component: () => import('@/views/employee/driver/main/detail.vue')
        }
      ]
    },

    {
      path: '/employee/grade',
      component: () => import('@/views/employee/grade/index.vue'),
      name: 'gradeManage',
      children: [
        {
          path: '/employee/grade',
          name: 'grade',
          meta: { title: '排班管理' },
          component: () => import('@/views/employee/grade/main/index.vue')
        }
      ]
    }
  ]
}
